package com.snowRemovingUser.service.impl;

import com.snowRemovingUser.domain.TCommentRiskLevelRule;
import com.snowRemovingUser.mapper.TCommentRiskLevelRuleMapper;
import com.snowRemovingUser.service.ITCommentRiskLevelRuleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * comment风险等级规则Service业务层处理
 * 
 * @author lg
 * @date 2024-04-10
 */
@Service
public class TCommentRiskLevelRuleServiceImpl implements ITCommentRiskLevelRuleService 
{
    @Autowired
    private TCommentRiskLevelRuleMapper tCommentRiskLevelRuleMapper;

    /**
     * 查询comment风险等级规则
     * 
     * @param riskLevelRuleId comment风险等级规则主键
     * @return comment风险等级规则
     */
    @Override
    public TCommentRiskLevelRule selectTCommentRiskLevelRuleByRiskLevelRuleId(String riskLevelRuleId)
    {
        return tCommentRiskLevelRuleMapper.selectTCommentRiskLevelRuleByRiskLevelRuleId(riskLevelRuleId);
    }

    /**
     * 查询comment风险等级规则列表
     * 
     * @param tCommentRiskLevelRule comment风险等级规则
     * @return comment风险等级规则
     */
    @Override
    public List<TCommentRiskLevelRule> selectTCommentRiskLevelRuleList(TCommentRiskLevelRule tCommentRiskLevelRule)
    {
        return tCommentRiskLevelRuleMapper.selectTCommentRiskLevelRuleList(tCommentRiskLevelRule);
    }

    /**
     * 新增comment风险等级规则
     * 
     * @param tCommentRiskLevelRule comment风险等级规则
     * @return 结果
     */
    @Override
    public int insertTCommentRiskLevelRule(TCommentRiskLevelRule tCommentRiskLevelRule)
    {
        return tCommentRiskLevelRuleMapper.insertTCommentRiskLevelRule(tCommentRiskLevelRule);
    }

    /**
     * 修改comment风险等级规则
     * 
     * @param tCommentRiskLevelRule comment风险等级规则
     * @return 结果
     */
    @Override
    public int updateTCommentRiskLevelRule(TCommentRiskLevelRule tCommentRiskLevelRule)
    {
        return tCommentRiskLevelRuleMapper.updateTCommentRiskLevelRule(tCommentRiskLevelRule);
    }

    /**
     * 批量删除comment风险等级规则
     * 
     * @param riskLevelRuleIds 需要删除的comment风险等级规则主键
     * @return 结果
     */
    @Override
    public int deleteTCommentRiskLevelRuleByRiskLevelRuleIds(String[] riskLevelRuleIds)
    {
        return tCommentRiskLevelRuleMapper.deleteTCommentRiskLevelRuleByRiskLevelRuleIds(riskLevelRuleIds);
    }

    /**
     * 删除comment风险等级规则信息
     * 
     * @param riskLevelRuleId comment风险等级规则主键
     * @return 结果
     */
    @Override
    public int deleteTCommentRiskLevelRuleByRiskLevelRuleId(String riskLevelRuleId)
    {
        return tCommentRiskLevelRuleMapper.deleteTCommentRiskLevelRuleByRiskLevelRuleId(riskLevelRuleId);
    }
}
